/**
 * Main Class for starting up the server/accepting connections
 * New connections are simply passed off to the LoginHandler for verification
 * and routing
 * @author bigredshoes03
 * @date - 10/1/2009
 */
package main_serv;

import java.io.IOException;
import java.net.ServerSocket;


public class ServerListener {
	public static void main(String[] args){
		//Begin accepting connections and hand off new connections to the Login handler
		try {
			ServerSocket host = new ServerSocket(9999);
			while(true){
				System.out.println("Connecting...");
				LoginHandler l = new LoginHandler(host.accept());
				System.out.println("Connected!");
				l.start();
			}
		} catch (IOException e) {}
	}
}
